package Exercise1;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

public class FileWriterTest {
    public static void main(String args[]) throws IOException {
        File file = new File("src\\world.txt");
        FileWriter fw = new FileWriter(file);
        fw.write("不相信世界末日的到来\n");
        fw.write("相信世界的明天会更好");
        fw.close();
    }

}
